//
//  HouseViewController.m
//  JinChengYun
//
//  Created by 金橙云 on 2017/2/25.
//  Copyright © 2017年 金橙云. All rights reserved.
//

#import "HouseViewController.h"

#import "DCNavTabBarController.h"
#import "MainSalesViewController.h"//主售房源
#import "BusinessViewController.h"//商业房源
#import "MatingViewController.h"//配套房源
@interface HouseViewController ()

@end

@implementation HouseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"房源销售";
    self.view.backgroundColor = BgColor;
    
    MainSalesViewController*mainSalesVC = [[MainSalesViewController alloc] init];
    mainSalesVC.title = @"主售房源";
    
    BusinessViewController *businessVC = [[BusinessViewController alloc] init];
    businessVC.title = @" 商业房源";
    
    MatingViewController *matingVC = [[MatingViewController alloc] init];
    matingVC.title = @"配套房源";
    
    
    NSArray *subViewControllers = @[mainSalesVC,businessVC,matingVC];
    
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, LL_StatusBarAndNavigationBarHeight, B_WIDTH, 1)];
    [self.view addSubview:view];
    
    DCNavTabBarController *tabBarVC = [[DCNavTabBarController alloc]initWithSubViewControllers:subViewControllers];
    tabBarVC.view.frame = CGRectMake(0, LL_StatusBarAndNavigationBarHeight, B_WIDTH, B_HEIGHT - LL_StatusBarAndNavigationBarHeight);
    [self.view addSubview:tabBarVC.view];
    [self addChildViewController:tabBarVC];
    

   
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
